var dest = "./www";
var src = './src';

module.exports = {
  sass: {
    src: src + "/scss/*.{sass, scss}",
    app: [src + "/scss/app.scss", src + "/scss/style.scss"],
    dest: dest + "/css"
  },
  images: {
    src: src + "/images/**",
    dest: dest + "/images"
  },
  htmlpage: {
    src: src + "/**/*.html",
    dest: dest
  },
  jshint: {
    src: [src + "/scripts/angular-others/**"],
    dest: dest
  },
  jscopy: {
    src: [
      src + "/scripts/underscore-min.js", 
      //angular.min.js 单独写以确保此文件优先
      src + "/scripts/angular/angular.min.js", 
      src + "/scripts/angular/*.min.js", 
      src + "/scripts/angular-ui/*.min.js",
      //排除文件
      //"!" + src + "/scripts/angular/angular-animate.min.js"
    ],
    dest: dest + "/scripts",
    outputName: 'base.min.js'
  },
  scripts: {
    src: src + "/scripts",  //for watch
    bundleConfigs:[
      {
        src: src + "/scripts/angular-others/**",
        dest: dest + "/scripts",
        outputName: 'angular.others.js'
      },
      {
        src: src + "/scripts/job.js",
        dest: dest + "/scripts",
        outputName: 'job.js'
      }
    ]
  },


  browserSync: {
    server: {
      // We're serving the src folder as well
      // for sass sourcemap linking
      baseDir: [dest, src],
      //index: "index.html"
    },
    files: [
      dest + "/**",
      // Exclude Map files
      "!" + dest + "/**.map"
    ],
    //port: 8000
  },
  browserify: {
    // Enable source maps
    debug: true,
    // Additional file extentions to make optional
    extensions: ['.coffee', '.hbs'],
    // A separate bundle will be generated for each
    // bundle config in the list below
    bundleConfigs: [{
      entries: './src/javascript/app.coffee',
      dest: dest + "/scripts",
      outputName: 'app.js'
    }, {
      entries: './src/javascript/head.coffee',
      dest: dest + "/scripts",
      outputName: 'head.js'
    }]
  }
};
